package com.hk.commons.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hk.commons.ConstantCard;

/**
 * 加息券
 * 
 * @author jeff
 *
 */
@Entity
@Table(name = "t_user_card")
public class UserCard implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1578350895690889930L;

	@Id
	private Long id;

	private Long userId;

	private Long orderId;

	private Integer cardId;

	/**
	 * 卡券的状态0:未使用， 1:已使用， 2， 已过期
	 */
	private Integer status;

	/**
	 * 领取时间
	 */
	private Long getTime;

	/**
	 * 启用时间
	 */
	private Long useTime;


	public UserCard() {
	}

	public UserCard(Long userId, Integer cardId) {
		this.userId = userId;
		this.cardId = cardId;
		this.status = ConstantCard.CARD_STATUS_NO_ACTIVE;

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getGetTime() {
		return getTime;
	}

	public void setGetTime(Long getTime) {
		this.getTime = getTime;
	}

	public Long getUseTime() {
		return useTime;
	}

	public void setUseTime(Long useTime) {
		this.useTime = useTime;
	}

	public Integer getCardId() {
		return cardId;
	}

	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

}
